<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/



Route::prefix('index')->group(function(){
    /*首页*/
    Route::get('index','Api\IndexController@index');
    /*统计*/
    Route::get('total','Api\IndexController@total');
    /*个人信息*/
    Route::get('my','Api\IndexController@my');
    /*广告*/
    Route::get('advertisement','Api\IndexController@advertisement');
    /*我的参与*/
    Route::get('history','Api\IndexController@history');
    /*我发起*/
    Route::get('launch','Api\IndexController@launch');
    /*我的中奖*/
    Route::get('mywin','Api\IndexController@mywin');
    /*获取收货地址*/
    Route::get('getaddress','Api\IndexController@getaddress');
    /*保存收货地址*/
    Route::get('address','Api\IndexController@address');
    /*配置*/
    Route::get('config','Api\IndexController@config');
    /*发布权限*/
    Route::get('release','Api\IndexController@release');
    /*店铺优惠劵*/
    Route::get('voucher','Api\IndexController@voucher');
    /*抽奖发起人*/
    Route::get('author','Api\IndexController@author');
    /*添加抽奖*/
    Route::get('add','Api\IndexController@add');
    /*注册*/
    Route::get('register','Api\IndexController@register');
});
